<extend name="Layout/page_detail" />
<block name="content">
    <input type="hidden" id="id" name="id" value="{$vo.id}">
	{:W('PageHeader/simple',array('name'=>$vo['name'],'search'=>'N'))}
	<div class="operate panel panel-default">
		<div class="panel-body">
			<div class="pull-left">
				<a onclick="go_return_url();" class="btn btn-sm btn-primary">返回</a>
				<a onclick="del();" class="btn btn-sm btn-danger">删除</a>
			</div>
			<div class="pull-right">
				<a onclick="edit();" class="btn btn-sm btn-primary">修改</a>
			</div>
		</div>
	</div>
	<form method='post' id="frm_content" name="frm_content" enctype="multipart/form-data"  class="well form-horizontal">
        <input type="hidden" id="id" name="id" value="{$vo.id}">

		<div class="form-group  col-sm-6">
        <label class="col-sm-4 control-label" >姓名：</label>
        <div class="col-sm-8">
            <p class="form-control-static">{$vo.name}</p>
        </div>
    </div>                            
		<div class="form-group  col-sm-6">
        <label class="col-sm-4 control-label" for="sex">性别：</label>
        <div class="col-sm-8">
            <select name="sex" id="sex" class="form-control" disabled="disabled" >
            <option value="">请选择</option>
            
					<option value="0">男</option>
					<option value="1">女</option>            
				</select>
        </div>
    </div>            
		<div class="form-group  col-sm-6">
        <label class="col-sm-4 control-label" >民族：</label>
        <div class="col-sm-8">
            <p class="form-control-static">{$vo.nation}</p>
        </div>
    </div>                                    
		<div class="form-group  col-sm-6">
        <label class="col-sm-4 control-label" >出生日期：</label>
        <div class="col-sm-8">
            <p class="form-control-static">{$vo.borndate|substr=0,10}</p>
        </div>
    </div>    
		<div class="form-group  col-sm-6">
        <label class="col-sm-4 control-label" >籍贯：</label>
        <div class="col-sm-8">
            <p class="form-control-static">{$vo.hometown}</p>
        </div>
    </div>                                    
		<div class="form-group  col-sm-6">
        <label class="col-sm-4 control-label" >入党时间：</label>
        <div class="col-sm-8">
            <p class="form-control-static">{$vo.partydate|substr=0,10}</p>
        </div>
    </div>                
		<div class="form-group  col-sm-6">
        <label class="col-sm-4 control-label" >学历：</label>
        <div class="col-sm-8">
            <p class="form-control-static">{$vo.education_grade_id_display}</p>
        </div>
    </div>        
		<div class="form-group  col-sm-6">
        <label class="col-sm-4 control-label" >毕业院校：</label>
        <div class="col-sm-8">
            <p class="form-control-static">{$vo.graduate_school}</p>
        </div>
    </div>                    
		<div class="form-group  col-sm-6">
        <label class="col-sm-4 control-label" >身份证号：</label>
        <div class="col-sm-8">
            <p class="form-control-static">{$vo.idcard_num}</p>
        </div>
    </div>                    
		<div class="form-group  col-sm-6">
        <label class="col-sm-4 control-label" >办公电话：</label>
        <div class="col-sm-8">
            <p class="form-control-static">{$vo.work_phone}</p>
        </div>
    </div>                    
		<div class="form-group  col-sm-6">
        <label class="col-sm-4 control-label" >移动电话：</label>
        <div class="col-sm-8">
            <p class="form-control-static">{$vo.mobile_phone}</p>
        </div>
    </div>                    
		<div class="form-group  col-sm-6">
        <label class="col-sm-4 control-label" >工作单位：</label>
        <div class="col-sm-8">
            <p class="form-control-static">{$vo.work_company}</p>
        </div>
    </div>                    
		<div class="form-group  col-sm-6">
        <label class="col-sm-4 control-label" >家庭住址：</label>
        <div class="col-sm-8">
            <p class="form-control-static">{$vo.home_address}</p>
        </div>
    </div>                        
		<div class="clearfix"></div>
    <div class="form-group">
        <label class="col-sm-2 control-label" >专业特长：</label>
        <div class="col-sm-10">
            <div class="content_wrap" >
                <iframe class="content_iframe"></iframe>
                <textarea  class="editor content" id="special" name="special" style="width:100%;display:none">{$vo.special}</textarea>
            </div>
        </div>
    </div>                        <div class="form-group">

        </div>
	</form>
</block>
<block name="js">
<script type="text/javascript">
    $(function() {
        show_content();
    });

    function del() {
        ui_confirm('确定要删除吗?', function() {
            sendAjax("{:U('del')}", 'id=' + $("#id").val(), function(data) {
                if (data.status) {
                    ui_alert(data.info, function() {
                        go_return_url();
                    });
                }
            });
        });
    }

    function edit() {
        window.open(fix_url("{:U('edit')}?id=" + $("#id").val()), "_self");
    }
   $(document).ready(function() {

		set_val('sex',"{$vo.sex}");
    });
</script>
</block>